home *** CD-ROM | disk | FTP | other *** search
- ; Some bindings for Nicko's RISC OS uEmacs
-
- set $discmd FALSE
-
- ; First, set up some sensible bindings for the cursor keys.
-
- bind-to-key backward-character FN, ; left arrow
- bind-to-key previous-word FN< ; S-left arrow
- bind-to-key beginning-of-line FNL ; C-left arrow
-
- bind-to-key forward-character FN- ; right arrow
- bind-to-key next-word FN= ; S-right arrow
- bind-to-key end-of-line FNM ; C-right arrow
-
- bind-to-key previous-line FN/ ; up arrow
- bind-to-key previous-page FN? ; page up
- bind-to-key beginning-of-file FNO ; C-up arrow
- bind-to-key beginning-of-file ^^ ; Home
-
- bind-to-key next-line FN. ; down arrow
- bind-to-key next-page FN> ; page down
- bind-to-key end-of-file FNN ; C-down arrow
-
- bind-to-key handle-tab FN* ; Tab
-
- bind-to-key delete-next-character FN+ ; Copy
- bind-to-key delete-next-word FN; ; S-Copy
- bind-to-key kill-to-end-of-line FN[ ; S-C-copy
-
- bind-to-key yank FNa ; Insert
-
- bind-to-key next-line FNd ; V-scroll line down
- bind-to-key previous-line FNh ; V-scroll line up
- bind-to-key next-page FN` ; V-scroll page down
- bind-to-key previous-page FNl ; V-scroll page up
-
- ; Now the Twin style keys, unshifted ones first. Note that not everything maps
- ; as nicely as some things, and that my current fn key setup doesn't register
- ; f10-f12 - this will be fixed someday!
-
- ; Print FN
- bind-to-key i-shell FN! ; f1
- bind-to-key find-file FN" ; f2
- bind-to-key save-file FN# ; f3
- bind-to-key search-forward FN$ ; f4
- bind-to-key goto-line FN% ; f5
- bind-to-key set-mark FN& ; f6
- ; f7 FN'
- ; f8 FN(
- ; f9 FN)
- ; f10 FNb
- ; f11 FNc
-
- ; Now the shifted keys.
-
- ; Print FN0
- ; f1 FN1
- bind-to-key insert-file FN2 ; f2
- ; f3 FN3
- bind-to-key exit-emacs FN4 ; f4
- ; f5 FN5
- ; f6 FN6
- ; f7 FN7
- ; f8 FN8
- ; f9 FN9
- ; f10 FNf
- ; f11 FNg
- ; And now the control fn keys
-
- ; Print FN@
- bind-to-key grow-window FNA ; f1
- bind-to-key shrink-window FNB ; f2
- ; f3 FNC
- ; f4 FND
- bind-to-key quote-character FNE ; f5
- bind-to-key fill-paragraph FNF ; f6
- ; f7 FNG
- ; f8 FNH
- bind-to-key pipe-command FNI ; f9
- ; f10 FNj
- ; f11 FNk
-
- ; Not much in the control-shift-fn key range.
-
- ; Hmm, and these are from days of old.
-
- ;bind-to-key delete-next-character ⇧
- ;bind-to-key delete-other-windows ’
- ;bind-to-key split-current-window ‹
- ;bind-to-key delete-window Ú
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- ; And now my preferred settings...
-
- 4 handle-tab
-
- add-global-mode cmode
-
- set $discmd TRUE
-